STEP 13: We're almost done with our loop. All we have to do is make our player move back after kicking the ball.

  • In GRAPHICS, go to and drag in Move Left OUTSIDE your else block but INSIDE your loop.
  • There should be only a purple highlight before the command like this: ····
  • Change the name in front of .move_left() from sprite to player.
  • Change the value inside from 50 to 20.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)